package week6;

public class PC {
    private CPU cpu;
    private HardDisk HD;

    public void setCPU(CPU cpu){
        this.cpu=cpu;
    }
    public void setHD(HardDisk HD) {
        this.HD = HD;
    }
    public void show(){
        System.out.println("CPU的速度:"+cpu.getSpeed());
        System.out.println("HardDisk的容量："+HD.getAmount());
    }
}
